package com.example.pool.httpTest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class AsyncClientController {

    @GetMapping("/get")
    public String test() {
        try {
            // 模拟业务处理5秒钟
            Thread.sleep(1000 * 3);
            return "success";
        }catch (Exception e) {
            e.printStackTrace();
        }
        return "error";
    }

}
